package com.atguigu.yygh.cmn.client;

import com.atguigu.yygh.model.user.Patient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @FileName: PatientFeignClient 数据字典API接口
 * @Author Steven
 * @Date: 2021/3/23
 */
@Service
@FeignClient("service-user")
public interface PatientFeignClient {

    /**
     * 根据id获取病人信息
     * @param id 病人编号
     * @return 病人信息
     */
    @GetMapping("/api/user/patient/auth/get/{id}")
    Patient getPatient(@PathVariable("id") Long id);

}
